package com.league.zjxn.entity

import com.module.lemlin.http.HttpResponseData
import java.io.Serializable

data class LoginResponse(
    val data: Login
) : HttpResponseData()

data class Login(
    val token: String,
    val user: UserInfo
)

data class UserInfoResponse(
    val data: UserInfo
) : HttpResponseData()

data class UserInfo(
    val alliance_apply_count: Int,
    val city: String,
    val enterprise: Any,
    val follow_enterprise: Int,
    val government_park: Int,
    val group_id: String,
    val id: String,
    val industry: String,
    val logo: String,
    val mobile: String,
    val name: String,
    val pending_approval_count: Int,
    val personal_data: Any,
    val planning_project: Int,
    val project_apply_count: Int,
    val province: String,
    val to_construction: Int,
    val username: String
)

data class Enterprise(
    val appeal: String,
    val city: String,
    val city_id: String,
    val contact: String,
    val industry: String,
    val industry_id: String,
    val logo: String,
    val mobile: String,
    val province: String,
    val province_id: String,
    val title: String
)

data class PersonalData(
    val industry: String,
    val industry_id: String,
    val level: String,
    val mobile: String,
    val signature: String,
    val username: String
)


data class ContactUsResponse(
    val data: ContactUs
) : HttpResponseData()

data class ContactUs(
    val address: String,
    val area: Any,
    val city: String,
    val email: String,
    val fax: String,
    val id: String,
    val latitude: String,
    val longitude: String,
    val phone: String,
    val province: String,
    val qrcode: String,
    val support: String
)

data class AgreeResponse(
    val data: Agree
) : HttpResponseData()

data class Agree(
    val content: String
)

data class FollowStatisticsResponse(
    val data: FollowStatistics
) : HttpResponseData()

data class FollowStatistics(
    val follow_enterprise: Int,
    val government_park: Int,
    val planning_project: Int,
    val to_construction: Int
)

data class SendSmsCodeResponse(
    val data: SendSmsCode
) : HttpResponseData() {
    val apikey: String? = null
}

data class SendSmsCode(
    val callId: Int,
    val requestId: String,
    val ticket: String
)

data class FollowEnterpriseResponse(
    val data: PageData<FollowEnterprise>
) : HttpResponseData()

data class FollowEnterprise(
    val id: String,
    val logo: String,
    val title: String
)


data class FollowProjectResponse(
    val data: PageData<FollowProject>
) : HttpResponseData()

data class FollowProject(
    val cover: String,
    val day: String,
    val desc: String,
    val id: String,
    val title: String,
    val years: String
)


data class ProjectApplyResponse(
    val data: PageData<ProjectApply>
) : HttpResponseData()

data class ProjectApply(
    val create_time: String,
    val enterprise: String,
    val id: String,
    val mobile: String,
    val title: String,
    val type: String
)


data class EnterpriseApproveResponse(
    val data: PageData<EnterpriseApprove>
) : HttpResponseData()

data class EnterpriseApprove(
    val city: String,
    val content: String,
    val contract: String,
    val create_time: String,
    val id: String,
    val industry: String,
    val is_show: Int,
    val name: String,
    val province: String,
    val status: Int,
    val status_text: String,
    val person: String
) : Serializable

data class ApproveFlowResponse(
    val data: MutableList<ApproveFlow> = mutableListOf()
) : HttpResponseData()

data class ApproveFlow(
    val create_time: String? = null,
    val remark: String? = null,
    val status: String? = null,
    val text: String,
    val username: String? = null
)


data class IndustryListResponse(
    val data: MutableList<IndustryList> = mutableListOf()
) : HttpResponseData()

data class IndustryList(
    val icon: String,
    val id: String,
    val name: String
)

data class RegionListResponse(
    val data: MutableList<RegionList> = mutableListOf()
) : HttpResponseData()

data class RegionList(
    val children: MutableList<RegionChild> = mutableListOf(),
    val id: String,
    val is_show: String,
    val name: String,
    val pid: String
)

data class RegionChild(
    val id: String,
    val is_show: String,
    val name: String,
    val pid: String
)